package com.maxd.service.pay;

import com.maxd.error.Result;
import com.maxd.model.PayDetails;
import com.maxd.model.PublisherOrderDtoBean;
import io.swagger.models.auth.In;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.Map;

public interface PayDetailsService {


    PayDetails saveBody(PayDetails payDetails);

    PayDetails selectByOrderId(String orderId);

    PayDetails selectById(Long id);

    int updateState(Long id, Integer state, Date time);

    Page<Map<String,Object>> selectPayDetails(Pageable pageable, String phone, String startTime, String endTime);

    Page<Map<String,Object>> selectPayDetailsByUserId(Pageable pageable, Long userId, String startTime, String endTime);

}
